var nIntervId1;
var Recordnumber = 1

function go2buy() {
    console.log("js脚本正在帮你抢购＊＊＊＊＊＊＊＊＊＊＊＊＊ 刷新" + Recordnumber + "次");
    Recordnumber++;
    D = document.getElementById("pro-operation");
    A = D.firstChild;
    if (A.className == "product-button02 disabled") {
        console.log("还未开始");
    } else {
        A.click();
        clearInterval(nIntervId0);
        nIntervId1 = setInterval("SubmitOrder()", 10);
    }
    D = undefined;
    A = undefined;
}

function SubmitOrder() {
    Sub = document.getElementById("checkoutSubmit");
    if (Sub) {
        document.getElementById("checkoutSubmit").click();
        clearInterval(nIntervId1);
        document.getElementById("checkoutSubmit").click();
    }
    Sub = undefined;
}

nIntervId0 = setInterval("go2buy()", 1);